package cn.hnu.qq.entity.message;

import cn.hnu.qq.entity.User;
import cn.hnu.qq.global.MessageType;

public class NewMemberMessage extends Message {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private User user;
	
	private String crowd;
	
	public NewMemberMessage(){
		setMessageType(MessageType.NEW_MEMBER);
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getCrowd() {
		return crowd;
	}

	public void setCrowd(String crowd) {
		this.crowd = crowd;
	}

	@Override
	public String toString() {
		return "NewMemberMessage [user=" + user + ", crowd=" + crowd + "]";
	}
	
}
